package task

import "gitee.com/wcs2/common/enums"

type SubTaskTypeEnum string

//子任务类型枚举
const (
	OFS      = "OFS"
	RCS      = "RCS"
	BOX      = "BOX"
	TLBox    = "TLBox"
	TL       = "TL"
	CONVEYOR = "CONVEYOR"
	HOISTER  = "HOISTER"
)

var subTaskTypeEnum = map[enums.WCSEnum]string{
	OFS:      "主任务",
	RCS:      "小车任务",
	BOX:      "料箱任务",
	TLBox:    "输送线接箱任务",
	TL:       "输送线任务",
	CONVEYOR: "链条输送线任务",
	HOISTER:  "提升机任务",
}

func (taskTypeEnum *SubTaskTypeEnum) Value(code enums.WCSEnum) string {
	if msg, ok := subTaskTypeEnum[code]; ok {
		return msg
	}
	return "未知类型"
}
